import request from '@/utils/request'

// 查询领取优惠券的记录列表
export function listUser_coupon(query) {
  return request({
    url: '/market/user_coupon/list',
    method: 'get',
    params: query
  })
}

// 查询领取优惠券的记录详细
export function getUser_coupon(id) {
  return request({
    url: '/market/user_coupon/' + id,
    method: 'get'
  })
}

// 新增领取优惠券的记录
export function addUser_coupon(data) {
  return request({
    url: '/market/user_coupon',
    method: 'post',
    data: data
  })
}

// 修改领取优惠券的记录
export function updateUser_coupon(data) {
  return request({
    url: '/market/user_coupon',
    method: 'put',
    data: data
  })
}

// 删除领取优惠券的记录
export function delUser_coupon(id) {
  return request({
    url: '/market/user_coupon/' + id,
    method: 'delete'
  })
}
